package com.isxcode.link.common.exception;

import lombok.Getter;

/**
 * 所有返回异常
 */
public enum LinkExceptionEnum {

    KEY_IS_NULL("50001", "key为null"),

    KEY_IS_ERROR("50002", "key不正确"),

    REQUEST_VALUE_EMPTY("50003", "缺少输入参数"),

    COMMAND_EXECUTE_ERROR("50004", "命令执行异常"),

    READ_LOG_FILE_ERROR("50005", "读取日志失败"),
    ;

    @Getter
    private final String code;

    @Getter
    private final String message;

    LinkExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
